package com.cloudkinto.session;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户会话对象
 */
@ApiModel
@Data
public class UserSession implements Serializable {
    public static final String SESSION_ID_KEY = "token";
    private static final long serialVersionUID = 1L;
    private String sessionId;

    private Long userId;

    private Long tenantId;

    private Long companyId;

    private String username;

    private String userAccount;

    @ApiModelProperty("用户类型1：老项目角色 2客户角色3：后台角色")
    private Integer userType;

    private String companyName;

    private String companyCode;

    private Long storageId;


}
